package com.liyiruo.testMain.processor;

import com.liyiruo.beans.Show;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 几个后置处理器的测试
 * @author liyiruo
 * @Description
 * @Date 2023/4/20 下午10:34
 */
public class MyBeanFactoryPostProcessorTest {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("processor/beanFactoryPostProcessor.xml");
        //把helloword替换掉
        Object helloWorld = context.getBean("helloWorld");
        System.out.println("被修改的bean,helloWorld==>"+helloWorld);
        //新增一个helloword2
        Object helloWord2 = context.getBean("helloWord2");
        System.out.println("新增加的bean,helloWord2==>"+helloWord2);

    }
}
